package letcode;

import java.util.Arrays;

public  class tools {
    public static void swap(int[] arr,int i,int j)
    {
        int temp=arr[i];
        arr[i]=arr[j];
        arr[j]=temp;
    }

    public static void arrayout(int [] arr)
    {
       for (int i=0;i<arr.length;i++)
       {
           System.out.print(arr[i]+" ");
       }
    }
    public static void arrayout(String[] arr)
    {
        for (int i=0;i<arr.length;i++)
        {
            System.out.print(arr[i]+" ");
        }
    }
}
